<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>果酱味奶糖</title>
</head>
<body>
    <div id="p1" fx="果酱味奶糖">这是一个块</div>
</body>
<script src="../js/jQuery.js"></script>
<script>
    console.log( $("div").attr("fx") );
    console.log( $("div").prop("fx") );

    $("div").attr("fx","这不是果酱味奶糖")
    $("div").prop("fx","这不是果酱味奶糖")

    console.log( $("div").prop("id") );
    $("div").prop("id","prop1")
</script>
</html>